#from myelin.Ns import MYELINS
from nodetypes.formats.mml.EventsTransform import EventsTransform
from nodetypes.formats.mml.Events import CancelEventHandler

from libmml import reset, \
    search, \
    change_query, \
    close

class EventsTransform(EventsTransform):
    
    events = ({
        'reset'             : (reset.EventHandler, None),
        'search'            : (search.EventHandler, None),
        'cancel'            : (CancelEventHandler, None),
        }, {
        'refresh'           : (search.EventHandler, None),
        'change-query'      : (change_query.EventHandler, None),
        'cancel'            : (CancelEventHandler, None),
        }, 
    )
    
    submitEvents = (
        ('search','cancel'),
        ('refresh','change-query','cancel'),
    )
    
del CancelEventHandler, reset, search, change_query, close